package com.ethink.order.api;

import com.ethink.order.api.info.TocSaleReturnImportLogResultInfo;
import com.ethink.order.api.request.TocSaleReturnImportLogResultSettleRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * TOC销售退单结果 Facade接口
 *
 * @author default
 * @date 2023-01-13
 */
@FeignClient(name = "ethink-order-service", path = "order-service/facade/v1/tocSaleReturnImportLogResult", contextId = "tocSaleReturnImportLogResultFacade")
public interface TocSaleReturnImportLogResultFacade {

    @GetMapping("/add")
    @ResponseBody
    Boolean add(@RequestParam("id") Long id);

    @GetMapping("/queryListByLogId")
    @ResponseBody
    List<TocSaleReturnImportLogResultInfo> queryListByLogId(@RequestParam("id") Long id);

    @PostMapping("/settleOrder")
    @ResponseBody
    void settleOrder(@RequestBody TocSaleReturnImportLogResultSettleRequest settleRequest);
}